package com.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author crm
 * @since 2020-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Module extends Model<Module> {

    private static final long serialVersionUID = 1L;

    /**
     * 模块表id
     */
    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid;

    /**
     * 模块名称
     */
    private String mname;

    /**
     * 父id
     */
    @TableField("parentId")
    private Integer parentId;

    /**
     * 路径
     */
    private String path;

    /**
     * 权重
     */
    private Integer weight;

    /**
     * 是否删除  1表示删除   0表示未删除  默认为0
     */
    @TableLogic
    private Integer isDelete;

    private String string0;

    @Override
    protected Serializable pkVal() {
        return this.mid;
    }

}
